﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>高级设置</title>
    <link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Scripts/config.js" type="text/javascript"></script>
    <script src="../../../Comm/JScript.js" type="text/javascript"></script>
    <script src="../../../Scripts/CommonUnite.js" type="text/javascript"></script>
    <script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Comm/Gener.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(function () {

            var frmID = GetQueryString("FrmID");

            //输出实体的其他信息，方便用户更改.
            var attrs = new Entities("BP.Sys.MapAttrs", "FK_MapData", frmID);
            var mapData = new Entity("BP.Sys.MapData", frmID);

            html = "<table style='width:100%;'>";
            html += "<caption>表单:" + mapData.Name + ",表单ID:" + mapData.No + ",表:" + mapData.PTable + "</caption>";
            html += "<tr>";
            html += "<th>#</th>";
            html += "<th>字段</th>";
            html += "<th>字段名</th>";
            html += "<th>类型</th>";
            html += "</tr>";

            for (var i = 0; i < attrs.length; i++) {
                var attr = attrs[i];
                html += "<tr>";
                html += "<td>" + (i + 1) + "</td>";
                html += "<td>" + attr.KeyOfEn + "</td>";
                html += "<td>" + attr.Name + "</td>";
                html += "<td>" + attr.MyDataType + "</td>";
                html += "</tr>";
            }
            html += "</table>";
            $("#FrmDocs").html(html);

         
        });

        function Close() {
            window.close();
        }
    </script>
</head>
<body>

    
   <div id="FrmDocs">
   </div>

</body>
</html>